//
//  FMDBManager.h
//  xpkc
//
//  Created by 胡志飞 on 15/11/27.
//  Copyright © 2015年 TopSage. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "FMDatabase.h"

#import "VideoCollectModel.h"

#import "VideoListModel.h"

@interface FMDBManager : NSObject

@property (nonatomic,strong) FMDatabase * dataBase;


-(instancetype)init;

+(instancetype)shareFMDBManager;

//-(void)createTableName:(NSString *)tableName;

//-(BOOL)insertVideoCollectWithvideoId:(NSString *)videoId indexpath:(NSIndexPath *)indexpath;

-(BOOL)deleteVideoCollectDataWithvideoId:(NSString *)videoId;

-(BOOL)selectVideoCollectWithvideoId:(NSString *)videoId;

-(NSArray *)selectVideoCollectWithSection:(NSString *)section;

-(NSMutableArray *)selectVideoCollectAllData;

-(BOOL)insertVideoCollectWithvideoId:(NSString *)videoId indexpath:(NSIndexPath *)indexpath lecture_section:(NSString *)lecture_section teacher:(NSString *)teacher duration:(NSString *)duration;

@end
